#include "stm32f10x.h"
#include "Delay.h"
#include "OLED.h"
#include "PWM.h"

uint8_t i;
void TIM2_IRQHandler(void);

int main(void)
{
  OLED_Init();
	PWM_Init();
	while(1){
	for(i=0;i<100;i++)
		{
	       PWM_SetCompare1(i);
	       Delay_ms(10);}
	for(i=0;i<100;i++)
		{
	       PWM_SetCompare1(100-i);
	       Delay_ms(10);
	
	}
	 
	}
	
	
	
	}

